﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AusProject
{
    public class PaperSize
    {
        public int PixelWidth { get; set; }
        public int PixelHeight { get; set; }

        public int DPI { get; set; }

        public int Width { get { return PixelWidth * DPI; } }
        public int Height { get { return PixelHeight * DPI; } }

        public PaperSize(int pixelWidth, int pixelHeight)
        {
            PixelWidth = pixelWidth;
            PixelHeight = pixelHeight;
            DPI = 60;
        }

        public PaperSize(int pixelWidth, int pixelHeight, int dpi)
        {
            PixelWidth = pixelWidth;
            PixelHeight = pixelHeight;
            DPI = dpi;
        }
    }
}
